<%-- 
	Document   : login
	Created on : Mar 7, 2009, 1:45:48 PM
	Author     : fronald
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@taglib uri="/WEB-INF/tld/nicasio.tld" prefix="n" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<link rel="stylesheet" href="${Application.css}">
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>${Application.appTittle} Logout</title>
	</head>
	<body>
		<f:view>
			<h:form>
				<table align="center" border="0">
					<tr>
						<td colspan="2"><img src="${Application.appLogo}"></td>
					</tr>
					<tr>
						<td>
							<n:String key="login.label"/>:
						</td>
						<td>
							<h:inputText value="#{User.login}"/>
						</td>
					</tr>
					<tr>
						<td>
							<n:String key="password.label"/>:
						</td>
						<td>
							<h:inputSecret value="#{User.password}"/>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<h:commandButton action="#{User.doLogin}" value="Login"></h:commandButton>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<h:outputText value="#{Session.flashMessage}"/>
						</td>
					</tr>
				</table>
			</h:form>
		</f:view>
	</body>
</html>
